package com.itmayiedu.controller;

import com.itmayiedu.service.HelloSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * *******************************************
 *
 * @description:使用RestTemplate+ribbon负载均衡调用接口
 * @author: by jgl
 * @date: 2018/1/30 0030 下午 10:17
 * @version:1.0 *******************************************
 */
@RestController
public class RibbonController {

    @Autowired
    private HelloSevice helloSevice;

    @RequestMapping("/hiname")
    public String hi(String name){
        return helloSevice.hi(name+"from ribbon");
    }
}
